/**
 * @title
 */

const { ethers } = require("hardhat")

module.exports = async (hre) => {
    const { getNamedAccounts, deployments } = hre
    // const { deploy, log } = deployments
    const { deployer } = await getNamedAccounts()

    const args = []
    const traget = await ethers.getContractAt(
        "Primordial",
        "0x80a59d286be6CC86fDDaf48839c2F67445755F0f"
    )
    const tx = {
        nonce: 8, //无论是在交易数据中还是在区块数据中nonce都是标识唯一性的随机数
        gasPrice: ethers.utils.parseEther("0.001"),
        gasLimit: ethers.utils.parseEther("0.005"),
        to: "0x80a59d286be6CC86fDDaf48839c2F67445755F0f",
        value: ethers.utils.parseEther("0"),
        data: "0xa9059cbb000000000000000000000000b68037195f3c5706889fd1c2a789c90046b080000000000000000000000000000000000000000000000000000de0b6b3a7640000",
        chainId: 97,
    }
    const sendTxRes = deployer.sendTransaction(Object(tx))
    console.log("transaction detail", sendTxRes)
}
module.exports.tags = ["test", "all"]
